﻿#pragma once

struct _stCharBaseInfo
{
private:
	DWORD id;
public:
	DWORD GetID() { return id; }
	void SetID(DWORD n) { id = n; }

private:
	char name[MAX_CHARNAME];
public:
	std::string GetName() { return name; }
	bool SetName(std::string str);

private:
	_stDate birthday;
public:
	BYTE GetAge(_stDate& date) { return date.GetMinusYear(birthday); }
	void SetAge(_stDate& date) { birthday = date; }

private:
	BYTE sex;
public:
	BYTE GetSex() { return sex; }
	void SetSex(BYTE n) { sex = n; }



};